﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StatRight.aspx.cs" Inherits="Flow_Info_StatRight" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link rel="Stylesheet" type="text/css" href="../Styles/right_style.css" />
    <script type="text/javascript" src="../Scripts/jquery.ui/js/jquery.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        <!--
        html{ scrollbar-base-color: #dbecf8; scrollbar-arrow-color: #2a8ed1; scrollbar-track-color: #bdddf2; scrollbar-3dlight-color: #2886c5; scrollbar-darkshadow-color: #2886c5;
        scrollbar-face-color: #dbecf8; scrollbar-shadow-color: #dbecf8;  }
        -->
    </style>
    <script type="text/javascript">
        function backTo() {
            window.location = "StatInfo.aspx";
        } 
    </script>
</head>
<body>
    <br />
    <table width="97%" border="1" cellpadding="0" cellspacing="0" 
        bordercolor="#72b0d8" style="border-collapse:collapse; " align="center">
        <form action="search.aspx" method="post">
        <tr align="center" height="30px" bgcolor="#b1d5ef">
            <td colspan="3" nowrap="nowrap">
                <b>工作流查询 - 请指定查询条件</b>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap">
                <b>流程名称：</b>
            </td>
            <td colspan="2" align="left">
                <% if (flow_form != null)
                   { %>
                <select name="FLOW_ID" style="width: 150px">
                    <option value="<%=flow_form.Flow_id %>">
                        <%=flow_form.Flow_name %>
                    </option>
                </select>
                <% } %>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap">
                <b>工作流状态：</b>
            </td>
            <td colspan="2" align="left">
                <select name="FLOW_STATUS" style="width: 150px">
                    <option value="ALL">所有</option>
                    <option value="1">已完成</option>
                    <option value="0">执行中</option>
                </select>
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap">
                <b>文号：</b>
            </td>
            <td nowrap="nowrap" align="left">
                <select name="WORK_NAME_RELATION" style="width: 150px">
                    <option value="1">等于</option>
                    <option value="2">大于</option>
                    <option value="3">小于</option>
                    <option value="4">大于等于</option>
                    <option value="5">小于等于</option>
                    <option value="6">不等于</option>
                    <option value="7">开始为</option>
                    <option selected="selected" value="8">包含</option>
                    <option value="9">结束为</option>
                </select>
            </td>
            <td align="left">
                <input maxlength="100" name="WORK_NAME" size="30" type="text" 
                    style="width: 150px">
            </td>
        </tr>
        <tr>
            <td nowrap="nowrap">
                <b>流程开始日期：</b>
            </td>
            <td colspan="2" align="left">
                从
                <input name="PRCS_DATE1" size="10" type="text" CssClass="Wdate" 
                    onClick="WdatePicker()" style="width: 150px">
                至
                <input name="PRCS_DATE2" size="10" type="text" CssClass="Wdate" 
                    onClick="WdatePicker()" style="width: 150px">
                可只填一项
            </td>
        </tr>
        <tr align="center" class="TableControl">
            <td colspan="3" nowrap="nowrap" height="30px">
                <input name="state" type="hidden" value="info_search" />
                <input class="BigButton" type="submit" value="查询" style="width: 75px">&nbsp;&nbsp;&nbsp;&nbsp;
                <input class="BigButton" name="back1" onclick="backTo()" style="width: 75px; height: 24px"
                    type="button" value="返回">
            </td>
        </tr>
        </form>
        <% if (flow_form != null)
           { %>
        <% int i = 1; %>
        <form action="search.aspx" method="post">
        <tr align="center">
            <td colspan="3" nowrap="nowrap"
                height="30px">
                <b>表单数据信息（表单名称：工作交办单）</b>
            </td>
        </tr>
        <% foreach (string[] title_type in flow_form.Field_type)
           { %>
        <tr>
            <td>
                <%=title_type[0] %>
                :
            </td>
            <td nowrap="nowrap">
                <% if (title_type[1].Equals("select"))
                   { %>
                <select name="<%="RELATION_" + i %>" language="javascript" 
                    onblur="return <%="RELATION_" + i %>_onblur()" style="width: 100px">
                    <option value="1">等于</option>
                </select>
                <% }
                   else if (title_type[1].Equals("text") || "textarea".Equals(title_type[1]))
                   { %>
                <select name="<%="RELATION_" + i %>" style="width: 100px">
                    <option value="1">等于</option>
                    <option value="2">大于</option>
                    <option value="3">小于</option>
                    <option value="4">大于等于</option>
                    <option value="5">小于等于</option>
                    <option value="6">不等于</option>
                    <option value="7">开始为</option>
                    <option selected="selected" value="8">包含</option>
                    <option value="9">结束为</option>
                </select>
                <% }
                   else if ("checkbox".Equals(title_type[1]))
                   { %>
                <select name="<%="RELATION_" + i %>" style="width: 100px">
                    <option value="1">等于</option>
                </select>
                <% } %>
            </td>
            <td>
                <% if (title_type[1].Equals("select"))
                   { %>
                <select name="<%="DATA_" + i %>" language="javascript" onmouseout="return <%="DATA_" + i %>_onmouseout()">
                    <%=title_type[2] %>
                </select>
                <% }
                   else if (title_type[1].Equals("text") || "textarea".Equals(title_type[1]))
                   { %>
                <input name='<%="DATA_" + i %>' size="30" type="text">
                <% }
                   else if ("checkbox".Equals(title_type[1]))
                   { %>
                <select name="<%="DATA_" + i %>">
                    <option value="ALL_SELECT" selected>所有</option>
                    <option value="on">是</option>
                    <option value="">否</option>
                </select>
                <% } %>
            </td>
        </tr>
        <% i++; %>
        <% } %>
        <tr height="30px">
            <td align="center" colspan="3">
                <input type="hidden" name="state" value="field_search" />
                <input name="max" type="hidden" value="<%=flow_form.Field_type.Count %>" />
                <input class="BigButton" style="width: 75px" type="submit" value="查询">&nbsp;&nbsp;&nbsp;&nbsp;
                <input class="BigButton" name="back1" onclick="backTo()" style="width: 75px; height: 24px"
                    type="button" value="返回">
            </td>
        </tr>
        </form>
        <% } %>
    </table>
</body>
</html>
